Skip to main content

setting

Table: setting

The setting table stores configurable system-level parameters used to control application behavior.


Columns

Column NameData TypeConstraintsDescription
settingIdsmallint(6)NO (PK)Unique identifier for each setting
createdDatedatetimeYESDate and time when the setting was created
descriptionvarchar(255)YESDescription explaining the purpose of the setting
lastEditedDatedatetimeYESDate and time when the setting was last modified
namevarchar(255)NO (UNIQUE)Unique key name used to reference the setting
valuevarchar(255)YESValue assigned to the setting
createdByUserIdint(11)YESUser who created the setting
lastEditedByUserIdint(11)YESUser who last modified the setting
displayNamevarchar(45)YESHuman-readable name displayed in the UI

Indexes

  • PRIMARY KEY — Index on settingId
  • UNIQUE KEY — Index on name
  • CreatorUserIdFK — Index on createdByUserId
  • EditorUserIdFK — Index on lastEditedByUserId

Foreign Key Relations

  • createdByUserId → user.mappedId
  • lastEditedByUserId → user.mappedId

Usage Notes

  • Used to manage application configuration without code changes.
  • Settings can control feature flags, thresholds, and runtime behavior.
  • The unique name field allows settings to be retrieved programmatically.
  • Audit fields help track who created or modified each configuration entry.